package com.java.zhuiyun.api.jielongidiomquestion.service;

import com.java.zhuiyun.api.jielongidiomquestion.entity.JieLongIdiomQuestion;
import com.java.zhuiyun.api.jielongidiomquestion.model.JieLongIdiomQuestionModel;
import com.java.zhuiyun.common.response.CommonResult;

import java.util.List;

/**
 * @InterfaceName JieLongIdiomQuestionService
 * @Description TODO 成语接龙题库业务逻辑层接口 后台管理查询词库、单查词语信息、保存成语信息、添加成语
 * @Author 杨友朋
 * @Date 2023/9/13 9:19
 **/
public interface JieLongIdiomQuestionService {
    /**
     * @Author 杨友朋
     * @Description TODO 后台管理查询词库
     * @Date 2023/10/12 11:17
     * @Return List<JieLongIdiomQuestion>
     * @param levelId
     */
    List<JieLongIdiomQuestion> selectQuestion(Integer levelId);

    /**
     * @Author 杨友朋
     * @Description TODO 保存成语信息
     * @Date 2023/10/12 11:22
     * @Return CommonResult
     * @param jieLongIdiomQuestion
     */
    CommonResult saveWordInfo(JieLongIdiomQuestionModel jieLongIdiomQuestion);

    /**
     * @Author 杨友朋
     * @Description TODO 单查词语信息
     * @Date 2023/10/12 11:20
     * @Return CommonResult
     * @param id
     */
    JieLongIdiomQuestion selectQuestById(Integer id);

    /**
     * @Author 杨友朋
     * @Description TODO 添加成语
     * @Date 2023/10/12 11:22
     * @Return CommonResult
     * @param jieLongIdiomLevel
     */
    CommonResult insertIdiom(JieLongIdiomQuestionModel jieLongIdiomLevel);

    /**
     * @Author 杨友朋
     * @Description TODO 删除成语
     * @Date 2023/10/20 13:56
     * @Return CommonResult
     * @param id
     */
    CommonResult delIdiom(Integer id);
}
